package com.genersoft.iot.vmp.gb28181.third.callback;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author XJW
 */
@Component
@ConfigurationProperties(prefix = "call-back", ignoreInvalidFields = true)
public class CallBackProperties {
    /**
     * 获取Channel的时间间隔，默认5分钟
     */
    private Integer timeInterval = 5;

    /**
     * 回调的URL列表
     */
    private List<String> channelUrl = new ArrayList<>();

    public List<String> getChannelUrl() {
        return channelUrl;
    }

    public void setChannelUrl(List<String> channelUrl) {
        this.channelUrl = channelUrl;
    }

    public Integer getTimeInterval() {
        return timeInterval;
    }

    public void setTimeInterval(Integer timeInterval) {
        this.timeInterval = timeInterval;
    }
}
